﻿using Abp.Modules;

namespace Basefr.Modules
{
    /// <summary>
    /// Module基类
    /// </summary>
    public abstract class ModuleBase<TModule> : AbpModule where TModule : ModuleBase<TModule>
    {
        /// <summary>
        /// 子类override此方法时，必须调用base.Initialize
        /// </summary>
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(TModule).Assembly);

            //Configuration.Modules.AbpAutoMapper().Configurators.Add(config => config.AddMaps(typeof(TModule).Assembly));
        }
    }
}
